﻿#ifndef ENUM_H
#define ENUM_H
#include <QObject>
#include <QDebug>
#include <QMetaEnum>
class EnumTest :public QObject
{
    Q_OBJECT
public:
    EnumTest();
    enum RobotInstructions{
        test = 0x05,
        start_music = 0,    //唱首歌
        strat_dance,        //跳舞
        selfcharging,       //去充电
        start_walk,         //前进
        left_walk,          //向左转
        right_walk,         //向右转
        walk_point,         //定点行走
        walk_tour           //导游行走
    };
    enum CurrentLocation{
        toInitPoint=10, //原点（开始的位置）
        onewindow,     //一号窗口
        twowindow,     //二号窗口
        threewindow,   //三号窗口
        fourwindow,    //四号窗口
        fivewindow,    //五号窗口
        sixwindow,     //六号窗口
        sevenwindow,   //七号窗口
        guitai,        //柜台
        zzqkj,         //自助取款机
        vips,          //贵宾室
        qiantai        //前台
    };
    enum LittlePeople{
        zmxlr =20,  //桌面小龙人
        djxlr,      //党建小龙人
        jhxlr       //建行小龙人
    };
    Q_ENUMS(RobotInstructions)
    Q_ENUMS(CurrentLocation)
    Q_ENUMS(LittlePeople)
    QString getPinYin(int pinYinID);
    int string2Enum(QString enumContainer ,QString strKey);
};
#endif // ENUM_H